package com.sunday.proxypatterns.staticProxy.controller;

import com.sunday.proxypatterns.request.RequestInfo;
import com.sunday.proxypatterns.staticProxy.proxy.UserProxy;
import com.sunday.proxypatterns.staticProxy.service.impl.UserServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
  @program: design-patterns
  @author: Jh
  @create: 2021-09-07 14:38
*/
@RestController
public class UserController {

    @GetMapping("test")
    public String test() {
         UserProxy proxy = new UserProxy(new UserServiceImpl());
         return proxy.login("江海","123456").toString();
    }
}
